<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>弹性盒模型</title>
<style>
	#main1{ width:200px; height:200px; border:1px black solid;  		
		display:flex; flex-direction:row-reverse; }
	#main2{ width:200px; height:200px; border:1px black solid;  
		display:flex; flex-direction:column-reverse; }
	.box{ width:50px; height:50px; background:red; 
		color:white; line-height:50px; text-align:center; }
</style>
</head>
<body>
<div id="main1">
	<div class="box">1</div>
    <div class="box">2</div>
    <div class="box">3</div>
</div>
<div id="main2">
	<div class="box">1</div>
    <div class="box">2</div>
    <div class="box">3</div>
</div>
</body>
</html>
